package com.cxc.chainOfResp;

/**
 * 领导审批
 */
public abstract class Leader {

    protected String name;
    protected Leader nextLeader;//责任链上的后续对象

    public Leader(String name) {
        super();
        this.name = name;
    }

    public void setNextLeader(Leader nextLeader) {
        this.nextLeader = nextLeader;
    }

    public abstract void handleRequest(LeaveRequest request);
}
